import { StudentResolver } from './student.resolver';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { Student } from './models/student.entity';
import { StudentService } from './student.service';
import { CardRecordService } from '../cardRecord/cardRecord.service';
import { CardRecord } from '../cardRecord/models/cardRecord.entity';
import { Product } from '../product/models/product.entity';
import { ProductService } from '../product/product.service';
import { Order } from '../order/models/order.entity';
import { OrderService } from '../order/order.service';

@Module({
  imports: [TypeOrmModule.forFeature([Student, CardRecord, Product, Order])],
  providers: [
    StudentService,
    StudentResolver,
    CardRecordService,
    ProductService,
    OrderService,
  ],
  exports: [StudentService],
})
export class StudentModule {}
